how to find common characters in two strings